package com.tbit.common.exceptions;

/**
 * 外部系统调用异常（微信，支付宝，汇付等）
 *
 * @author <a href="mailto:zhang.zhiliang@tbit.com.cn">Zhang ZhiLiang</a>
 * @version 1.0
 * @see <a href="http://adsl1.tbit.com.cn:21490/pages/viewpage.action?pageId=82182491">订单号规范</a>
 * @since 2024/5/17
 */
public class ExternalException extends RuntimeException{
    private static final long serialVersionUID = 1L;
    private transient String externalExceptionMsg;
    private transient String brandName;
    public ExternalException() {
        super();
    }
    public ExternalException(String message) {
        super(message);
    }

    public ExternalException(String message, String externalExceptionMsg) {
        super(message);
        this.externalExceptionMsg = externalExceptionMsg;
    }

    public ExternalException(String message, String externalExceptionMsg, String brandName){
        super(message);
        this.externalExceptionMsg = externalExceptionMsg;
        this.brandName = brandName;
    }

    public String getExternalExceptionMsg() {
        return externalExceptionMsg;
    }

    public String getBrandName() {
        return brandName;
    }
}
